package com.gugee.tiktok.common.model.dal.blogger;

import com.gugee.tiktok.common.model.mysql.BloggerType;
import org.springframework.data.jdbc.repository.query.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository

public interface BloggerTypeRepository extends CrudRepository<BloggerType,Long> {

    BloggerType getById(long id);

    @Query("select * from blogger_type order by sort asc")
    List<BloggerType> findAll();

    List<BloggerType> getBloggerTypeByIsDisplay(boolean isDisplay);
}
